package com.fh.controller;

import com.fh.model.Orders;
import com.fh.service.TimeOutQueryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("timeout")
public class TimeOutQueryController {

    @Resource
    private TimeOutQueryService timeOutQueryService;


    @GetMapping("query")
    public List<Orders> query(){
        return  timeOutQueryService.query();
    }





}
